'use client'

import { useState } from "react";
import Link from "next/link";

function Layout({ children }) {
  const [count, setCount] = useState(0);
  return (
    <>
      <div>
        <Link href='/dashboard/about'>about</Link> |
        <Link href='/dashboard/settings'>settings</Link>
      </div>

      <h1>Layout {count}</h1>
      <button onClick={() => setCount(count + 1)}>add</button>
      {children}
    </>
  )
}

export default Layout